import { icebreaker } from '@icebreakers/eslint-config'

export default icebreaker(
  {
    vue: true,
    tailwindcss: true,
    weapp: true,
    typescript: true,
    rules: {
      'antfu/top-level-function': 'off',
      'vue/first-attribute-linebreak': 'off',
      'regexp/no-unused-capturing-group': 'off',
      'semi': ['error', 'always'],
      'indent': ['error', 2],
      'unused-imports/no-unused-imports': 'error',
      'perfectionist/sort-imports': 'off',
    },
    ignores: [
      'node_modules/**/*',
      'modules/**/*',
      'packages/**/*',
      'src/uni_modules/**/*',
      '*.zip',
      'dist/**/*',
      'unpackage/**/*',
    ],
  },
)
